﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/ViewPageStandart.master" AutoEventWireup="true" CodeBehind="Info.aspx.cs" Inherits="SiteLib.Info" %>

<%@ Import Namespace="SiteLib.Tools" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    <asp:Literal runat="server" ID="lMainContentTitle" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
    <asp:Repeater runat="server" ID="rptSubMenu">
        <HeaderTemplate>
            <asp:Literal runat="server" ID="lOpenUl" Text="<ul class='subMenu'>" />
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <asp:HyperLink runat="server" ID="hlSubMenuLink" Text='<%# Eval("Title") %>' NavigateUrl='<%# PageHelper.CreateUrlForMenuItem(Eval("KeyId"), Eval("PageType")) %>' />
            </li>
        </ItemTemplate>
        <FooterTemplate>
            <asp:Literal runat="server" ID="lCloseUl" Text="</ul>" />
        </FooterTemplate>
    </asp:Repeater>
    <asp:Repeater runat="server" ID="rptFiles">
        <HeaderTemplate>
            <asp:Literal runat="server" ID="lOpenUl" Text="<ul class='fileList'>" />
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <asp:HyperLink runat="server" ID="hlSubMenuLink" Text='<%# Eval("DocumentName") %>' NavigateUrl='<%# String.Format("{0}/{1}", ConfigReader.SiteContentAttachmentPath, Eval("DocumentName")) %>' Target="_blank" ToolTip="Ссылка будет открыта в новом окне" />
            </li>
        </ItemTemplate>
        <FooterTemplate>
            <asp:Literal runat="server" ID="lCloseUl" Text="</ul>" />
        </FooterTemplate>
    </asp:Repeater>
    <asp:Literal runat="server" ID="lMainContent" />
</asp:Content>
